package nml.mail.reg.await;

import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class aim_com extends Reg {

	
	//登陆有问题
	public void reg(String username, String password) {
		

		String url = "https://new.aol.com/productsweb/?promocode=825962&lang=en&locale=us&regType=ONS0&sitedomain=sns.webmail.aol.com&uitype=std&r=http%3A%2F%2Fmail.aol.com%2F_cqr%2FLoginSuccess.aspx%3FsiteState%3Dver%253A4%257Crt%253ASTANDARD%257Cat%253ASNS%257Cld%253Awebmail.aol.com%257Cuv%253AAOL%257Clc%253Aen-us%257Cmt%253AANGELIA%257Csnt%253AScreenName%257Csid%253A70f30214-6cc6-45b4-9601-118167f96f3a&oauth_signature_method=HMAC-SHA1&oauth_consumer_key=redir.aol.com&oauth_timestamp=1350011141&oauth_nonce=14580909894733980&oauth_version=1.0&oauth_signature=fVQ9BU%2B0mapK7haipqGCRTGRl80%3D%0D%0A";
		get(url);

		dr.findElement(By.name("{actionForm.firstName}")).sendKeys("Tick");
		dr.findElement(By.name("{actionForm.lastName}")).sendKeys("Tock");
		dr.findElement(By.name("{actionForm.desiredSN}")).click();

		sleep(5000);

		dr.findElement(By.name("{actionForm.desiredSN}")).sendKeys(username);

		dr.findElement(By.cssSelector("#check-avail-butt span")).click();

		dr.findElement(By.name("{actionForm.password}")).sendKeys(password);
		dr.findElement(By.name("{actionForm.verifyPassword}")).sendKeys(password);

		dr.findElement(By.id("step-one")).click();

		sleep(5000);

		dr.findElement(By.id("arrowImg")).click();

		sleep(3000);
		dr.findElement(By.id("tab0")).click();

		dr.findElement(By.name("{actionForm.dobDay}")).sendKeys("21");

		dr.findElement(By.name("{actionForm.dobYear}")).sendKeys("1981");

		dr.findElement(By.name("wlw-radio_button_group_key:{actionForm.gender}")).click();

		

		dr.findElement(By.cssSelector("#asq-toggle-sect .first")).click();

		sleep(3000);
		dr.findElement(By.cssSelector("#asq-toggle-sect #tab0")).click();

		dr.findElement(By.name("{actionForm.acctSecurityAnswer}")).sendKeys("168");

		sleep(3000);

		dr.findElement(By.cssSelector(".stepTwo .ltbtnedge")).click();

	}

	public static void main(String[] args) {
		new aim_com().reg("qq331798654", "ddfs2392834id");
	}

}
